package com.zyl.Ecs.device.service;

import com.github.yulichang.base.MPJBaseService;
import com.zyl.Ecs.common.exception.EcsException;
import com.zyl.Ecs.common.domain.device.bean.Position;
import com.zyl.Ecs.common.domain.device.ext.PositionExt;

import java.util.List;

/**
* @version v1.0
* @Package: com.zyl.Ecs.device.service
* @ClassName: PositionService
* @Description 针对表【ecs_position】的数据库操作Service实现
* @Author 翟玉龙
* @Date 2024-12-05 09:52:35
*/

public interface PositionService extends MPJBaseService<Position> {

    /**
     * 新增点位
     *
     * @param positionExt 点位扩展信息
     * @return {@link PositionExt }
     * @throws EcsException
     */
    PositionExt add(PositionExt positionExt) throws EcsException;

    /**
     * 修改点位信息
     *
     * @param positionExt 点位扩展信息
     * @return {@link PositionExt }
     * @throws EcsException 异常
     */
    PositionExt update(PositionExt positionExt) throws EcsException;

    /**
     * 删除点位
     *
     * @param id 点位id
     * @return {@link PositionExt }
     * @throws EcsException 异常
     */
    PositionExt delete(Integer id) throws EcsException;

    /**
     * 查询全部点位列表
     *
     * @return {@link List }<{@link PositionExt }>
     * @throws EcsException 异常
     */
    List<PositionExt> getList() throws EcsException;
}
